def str_reverse(ss):
    """
    反转字符串
    :param ss: 待反转的字符串
    :return: 反转完成的字符串
    """
    return ss[::-1]


def substr(ss, x, y):
    """
    获取字符串的字串
    :param ss: 原字符串
    :param x: 字串的起始坐标
    :param y: 字串的结束坐标
    :return: 截取的字串
    """
    return ss[x:y]


if __name__ == '__main__':
    s = "舟方日明"
    print(str_reverse(s))
    print(substr(s, 2, 3))
